import { ClientCookiesProvider } from "@/providers/ClientCookiesProvider";
import "./globals.css";
import type { Metadata } from "next";
import { cookies } from "next/headers";

export const metadata: Metadata = {
  title: "NextJs cookie",
  description: "NextJS Cookie测试",
};

export default function RootLayout({ children }: ChildrenProps) {
  return (
    <html lang="en">
      <body>
        <ClientCookiesProvider value={cookies().getAll()}>
          <div className="container max-w-lg mx-auto my-6">{children}</div>
        </ClientCookiesProvider>
      </body>
    </html>
  );
}
